# !/usr/bin/python
# -*-coding:utf-8 -*-
"""
@File    :   urls.py
@Create  :   2021/8/28 18:35
@Author  :   David
"""
from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [
    # 登录，获取token
    # path('login', obtain_jwt_token),
    path('login', views.UserAuthorizeView.as_view()),  # 内部认证代码还是Django 登录成功生成token
    # 注册用户
    path('register', views.UserView.as_view()),
]
